package mrusanov.player

import mrusanov.terrain.TerrainType
import mrusanov.view.PlayerTypeView

class PlayerTypeInfo(val name:String, val view:PlayerTypeView, val favoriteTypes:Set[TerrainType], val hatedTypes:Set[TerrainType],
                     val hpToDamage:Float, val agility:Int, val damageType:DamageType, val resistances:Map[DamageType, Int]) {
  require(hpToDamage > 1, "HP to damage relation must be bigger than 1")
  require(agility >= PlayerTypeGenerator.MIN_AGILITY, "Agility must be bigger or equal to " + PlayerTypeGenerator.MIN_AGILITY)
  require(agility <= PlayerTypeGenerator.MAX_AGILITY, "Agility must be smaller than " + PlayerTypeGenerator.MAX_AGILITY)
}
